package org.jeecg.modules.tt_question_collect.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.tt_question_collect.util.TransUntil;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 问题收集
 * @Author: jeecg-boot
 * @Date:   2021-01-29
 * @Version: V1.0
 */
@Data
@TableName("view_export")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="导出对象", description="问题收集-导出")
public class wtexport implements Serializable {
    private static final long serialVersionUID = 1L;


    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**问题编码*/
    @Excel(name = "问题编码", width = 35)
    @ApiModelProperty(value = "问题编码")
    private String questioncode;
    /**产品名称*/
    @Excel(name = "产品名称", width = 15,dicCode = "proname")
    @Dict(dicCode = "proname")
    @ApiModelProperty(value = "产品名称")
    private String proname;
    /**问题所属项目*/
    @Excel(name = "所属模块", width = 15, dicCode = "module")
    @Dict(dicCode = "module")
    @ApiModelProperty(value = "所属模块")
    private String project;
    /**标题*/
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String titlesummary;
    /**问题详细内容*/
    @Excel(name = "问题详细内容", width = 35)
    @ApiModelProperty(value = "问题详细内容")
    private String questioncontent;

    /**问题类型*/
    @Dict(dicCode = "task_type")
    @ApiModelProperty(value = "问题类型")
    private String questiontype;
    /**需求类型*/

    @Dict(dicCode = "task_xq_type")
    @ApiModelProperty(value = "需求类型")
    private String needtype;
    /**紧急程度*/
    @Excel(name = "紧急程度", width = 15, dicCode = "jjcd")
    @Dict(dicCode = "jjcd")
    @ApiModelProperty(value = "紧急程度")
    private String priority;
    /**影响范围*/
    @Excel(name = "影响区域", width = 15)
    @ApiModelProperty(value = "影响区域")
    private String influenceregion;
    /**影响行业*/
    @Excel(name = "影响行业", width = 15,dicCode = "industry")
    @Dict(dicCode = "industry")
    @ApiModelProperty(value = "影响行业")
    private String influenceindustry;
    /**反馈人*/
    @Excel(name = "反馈人", width = 15)
    @ApiModelProperty(value = "反馈人")
    private String fkuser;
    /**反馈人身份*/
    @Excel(name = "反馈人身份", width = 15,dicCode ="fkr_sf")
    @Dict(dicCode = "fkr_sf")
    @ApiModelProperty(value = "反馈人身份")
    private String fkusersf;



    /**附件关联标识*/
    @Excel(name = "附件(多个附件链接会以逗号隔开)", width = 35,exportConvert=true,multiReplace=false)
    @ApiModelProperty(value = "附件")
    private String fileguid;


    /**方案名称*/
    @Excel(name = "方案名称", width = 15)
    private String planname;
    /**方案详情*/
    @Excel(name = "方案详情", width = 35)
    private String faxq;
    /**方案附件*/
    @Excel(name = "方案附件", width = 15,exportConvert=true,importConvert=true)
    private String fafj;


    /**提出时间*/

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "提出时间")
    private Date proposertime;


    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提出时间", width = 15,format = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**截止时间*/
    @Excel(name = "截止时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "截止时间")
    private Date endtime;
    /**收集人姓名*/
    @Excel(name = "收集人姓名", width = 15)
    @ApiModelProperty(value = "收集人姓名")
    private String collectorname;
    /**问题状态进度*/

    @ApiModelProperty(value = "问题状态进度")
    private String questionstatus;
    /**审批状态*/

    @Dict(dicCode = "sp_status")
    @ApiModelProperty(value = "审批状态")
    private String auditstatus;
    /**处理状态*/

    @Dict(dicCode = "cl_status")
    @Excel(name = "处理状态", width = 15)
    @ApiModelProperty(value = "处理状态")
    private String dealstatus;

    private String by1;
    private String by2;

    @Dict(dicCode = "isgk")
    private Integer highestbj;






    /**是否录入jira*/
    @Excel(name = "是否录入jira", width = 15,replace={"已录入_1","未录入_0"},exportConvert=true,importConvert=true)
    @ApiModelProperty(value = "是否录入jira")
    private String isjira;


    public String convertgetIsjira() {
        return isjira ==null?"未录入":isjira;
    }

    public void convertsetIsjira(String isjira) {
        this.isjira = isjira;
    }

    public String convertgetFileguid() {

       // return fileguid ==null ? "":"http://127.0.0.1:8012/onlinePreview?url="+TransUntil.baseendcode("http://192.168.1.77:12113/jeecg-boot/sys/common/static/"+fileguid);

        return fileguid ==null ? "":TransUntil.testbaseendcode(fileguid);
    }

    public void convertsetFileguid(String fileguid) {
        this.fileguid = fileguid;
    }


    public String convertgetFafj() {
        return fafj ==null ? "":TransUntil.testbaseendcode(fafj);
    }

    public void convertsetFafj(String fafj) {
        this.fafj = fafj;
    }





}
